/**
 * 组件的公共方法
 */
import {CUSTOM_EVENT_TYPE} from '../constants'

export default {
    name: 'ComponentMixin',
    model: {
        prop: 'value',
        event: CUSTOM_EVENT_TYPE.MODAL_CHANGE
    },
    props: {
        attrs: {
            type: Object
        },
        formItem: {
            type: Object
        },
        slots: {
            type: Object,
            default() {
                return {}
            }
        },
        slotScopes: {
            type: Object,
            default() {
                return {}
            }
        }
    }
}
